﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace LSHoude.FileRoller
{
    public class FileInfoFilePathEqualityComparer : EqualityComparer<FileInfo>
    {
        public override bool Equals(FileInfo file1, FileInfo file2)
        {
            return string.Compare(file1.FullName, file2.FullName, true) == 0;
        }

        public override int GetHashCode(FileInfo file)
        {
            return file.FullName.GetHashCode();
        }
    }
}
